package io.coding.service;

import io.coding.dao.PostDao;
import io.coding.dao.TestDao;
import io.coding.model.Bl_main_post;
import io.coding.model.Count;
import io.coding.utils.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Administrator on 2014/8/19.
 */
@Service
public class PostService {

    @Autowired
    private PostDao postDao;

    public List<Bl_main_post> findAll(){
        return postDao.findAll();
    }

    public Bl_main_post findBlogById(long id) {
        return postDao.findBlogById(id);
    }

    public void addReadingQuantity(long id) {
        postDao.addReadingQuantity(id);
    }
}
